using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Microsoft.SharePoint;

namespace MRCL
{
    public class NoCurrentPageCurrentNavSiteMapProviderNoEncode : Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider
    {
        public override SiteMapNode CurrentNode
        {
            get
            {
                SiteMapNode node = base.CurrentNode;

                if (node is Microsoft.SharePoint.Publishing.Navigation.PortalListItemSiteMapNode)
                {
                    node = node.ParentNode;
                }
                return node;
            }
        }
    }
}
